package com.zhuss.team.processor;

import com.zhuss.bean.bo.team.publish.CreatePublishUserBo;
import com.zhuss.common.AbstractProcessor;
import com.zhuss.common.Processor;
import com.zhuss.exception.WpsException;
import com.zhuss.team.db.dao.ext.InvestPublishDao;
import com.zhuss.team.db.dao.ext.InvestPublishUserDao;
import com.zhuss.team.db.dao.gen.InvestPublishUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/26 13:25
 */
@Component("publishUserCreate")
public class PublishUserCreate extends AbstractProcessor<Object, CreatePublishUserBo> implements Processor<Object, CreatePublishUserBo> {

    @Autowired
    private InvestPublishUserDao investPublishUserDao;

    @Override
    public Object process(CreatePublishUserBo bo) throws WpsException {
        investPublishUserDao.createBatch(bo);
        return null;
    }

    @Override
    public Object log(CreatePublishUserBo param) throws WpsException {
        return null;
    }

    @Override
    public void check(CreatePublishUserBo createPublishBo) throws WpsException {

    }
}
